<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p1_变换过渡</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: #5aa4ae;
            margin: 100px auto 0;
            /* 增加过渡时间，否则一瞬间缩放太突兀！ 注意加载元素上不是悬停上*/
            transition: 2s;

        }
        div:hover{
            background-color: lime;
            /* 缩放倍数 */
            transform: scale(1.2);
            /* 旋转
            */
            transform: scale(1.2) rotate(-90deg);
            border-radius: 50px;


        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>